const state = {
  cascaderInfo: {}, // 联级选择器：院系-专业
  course: {},
};

const mutations = {
  SET_CASCADER(state, data) {
    state.cascaderInfo = data
  },
  SET_COURSE(state, data) {
    state.course = data
  },
};

const actions = {
  // 联级选择器：院系-专业
  setCascader({ commit }, data) {
    commit("SET_CASCADER", data)
  },
  setCourse({ commit }, data) {
    commit("SET_COURSE", data)
  },
};

export default {
  namespaced: true,
  state,
  mutations,
  actions,
};
